package com.dodayum.java8.spi;


import com.dodayum.java8.service.PrintService;

import java.util.ServiceLoader;

public class JavaSpiMain {

    public static void main(String[] args) {
        ServiceLoader<PrintService> serviceServiceLoader = ServiceLoader.load(PrintService.class);

        for (PrintService printService : serviceServiceLoader) {
            printService.printInfo();
        }

    }

}
